void draw_bsp(int mode)
Parameter | Type | Description |
---|---|---|
mode | int | drawing mode: 0 - standard 1 - cartoon |
None
This function recureses the bsp tree and select all bsp faces and dynamic object that are inside the current view frustum. Then, all faces from the bsp are drawn followed by all dynamic objects. Transparent faces and draw after the nontransparent ones and dynamic objects set to latedraw will be the last ones to render.
If cartoon mode is set, the bsp faces are drawn with the current cartoonpicbsp and then all edges from the bsp faces selected for drawing will be tested for outline by the current camera. If edge is found to be at a backface/frontface pair, the edge is draw as a black line.